window.furionPostMessage = {}

window.furionPostMessage.post_message = function(msg) {
  if(window.parent != window) {
    window.parent.postMessage(msg, '*');
    return true
  }else {
    return false
  }
}

// wechat_share_data = {
//   id: null, // the id of share tag, can be empty
//   title: 'furion',  // share title, can't be empty
//   desc: 'furion desc',  // share desc, can't be empty
//   img_url: null, // share thumb url, can't be empty
//   link: null   // if empty, it will be the url of the wechat verison page
// }
window.furionPostMessage.share_wechat = function(wechat_share_data) {
  window.furionPostMessage.post_message({wechat_share_data: wechat_share_data})
}
